<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<title>封条管理及验证系统--公司信息维护</title>
<%@ include file="/comm.jsp"%>
	<style type="text/css">
	<!--
	fieldset {
	    padding:10px;
	    margin:10px;
	    width:270px;
	    color:#333; 
	} 
	legend {
	    color:#06c;
	    font-weight:600; 
	} 
		-->
	</style>
<script>
	function selCountryChange(){
		//更改countryCode
	}
	
	//改为ajax提交，然后刷新菜单
	function submitForm(){
		var form=document.getElementById("formpage");
		form.submit();
	}
</script>
<body leftmargin="0" topmargin="0" marginheight="0" >
  <s:form name ="formpage" action="companyInfo_update" namespace="/seal">
  	<s:token>
	</s:token>
	<div align="center">
	<s:hidden id="hdfId" name="companyInfo.id" value="%{#request.companyInfo.id}" />
	<s:hidden id="hdfCompanyId" name="companyInfo.companyId" value="%{#request.companyInfo.companyId}" />
  	<%@ include file="/messages.jsp"%>
				<table align="center" width="650">
					<tr>
						<td align="right" width="120">
							公司代码：
						</td>
						<td>
							${companyInfo.companyId }
						</td>
					</tr>
					<tr>
						<td align="right" width="120">
							公司名称：
						</td>
						<td>
							<input name="companyInfo.companyName" type="text" value="${companyInfo.companyName }"
							 maxlength="50" size="30" class="required"  title="*必填" />
						</td>
					</tr>
					
					<tr>
						<td align="right">
							国家:
						</td>
						<td>
							<s:select name="companyInfo.country"  list="#request.countryList"
							onchange="selCountryChange();"
							></s:select>
						</td>
					</tr>
					
					<tr>
						<td align="right">
							联系电话:
						</td>
						<td>
							<input name="companyInfo.countryCode" type="text" maxlength="10" size="5"
								value="${companyInfo.countryCode }" />
							<input name="companyInfo.telRegionCode" type="text" maxlength="10" size="5"
								value="${companyInfo.telRegionCode }" />
							<input name="companyInfo.telNumber" type="text" maxlength="20" size="15"
								value="${companyInfo.telNumber }" />
						</td>
					</tr>
					
					<tr>
						<td align="right">
							联系人:
						</td>
						<td>
							<input name="companyInfo.contact" type="text" maxlength="40" size="30"
								 value="${companyInfo.contact }"  />
						</td>
					</tr>
					
					<tr>
						<td align="right">
							联系地址:
						</td>
						<td>
							<input name="companyInfo.address" type="text" maxlength="40" size="30"
								class="required" value="${companyInfo.address }" title="*必填" />
						</td>
					</tr>
					
					<tr>
						<td align="right">
							邮政编码:
						</td>
						<td>
							<input name="companyInfo.postcode" type="text" maxlength="20" size="15"
								value="${companyInfo.postcode }"  />
						</td>
					</tr>
					
					<tr>
						<td align="right">
							公司网址:
						</td>
						<td>
							<input name="companyInfo.webSite" type="text" maxlength="40" size="30"
								value="${companyInfo.webSite }"  />
						</td>
					</tr>
					
					<tr>
						<td align="right" width="120"  valign="top">
							公司简介：
						</td>
						<td>
							<textarea name="companyInfo.introduction" cols="50" rows="5">${companyInfo.introduction }</textarea>
						</td>
					</tr>
					
					<tr>
						<td align="right">
							封条使用模式：
						</td>
						<td>
							<s:radio name="companyInfo.distributeType" list="#{'0':'无需分配','1':'需分配'}" value="%{#request.companyInfo.distributeType}"></s:radio> 							
						</td>
					</tr>
					
					<tr>
						<td colspan="2" align="center">
							<input type="button" class="button" id="ok" name="ok" onclick="submitForm();"
								value=" 保 存 " />
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="button" class="button" id="resets" value=" 返 回 " onclick="javascript:history.go(-1)"/>
						</td>
					</tr>
				</table>
			</div>
		</s:form>
  </body>
</html>